#
# Be sure to run `pod lib lint QNJSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'QNJSDK'
  s.version          = '1.1.0'
  s.summary          = '去哪借sdk'
  
  s.subspec 'MoXieSDKForQNJ' do |mx|
      mx.dependency 'MoxieSDK-iOS', '~> 2.4.4'
      #mx.source_files = 'QNJSDK/Classes/ThirdPartySDK/MoxieSDK/**/*.{h,m,mm}'
      #mx.ios.vendored_libraries = 'QNJSDK/Classes/ThirdPartySDK/MoxieSDK/libMoxieSDK.a'
      #mx.resources = 'QNJSDK/Classes/ThirdPartySDK/MoxieSDK/resources/*.png'
  end
  
  s.subspec 'Face++ForQNJ' do  |face|
      face.ios.vendored_frameworks = [
      #face++
      'QNJSDK/Classes/ThirdPartySDK/Face++/MGBaseKit.framework',
      'QNJSDK/Classes/ThirdPartySDK/Face++/MGIDCard.framework',
      'QNJSDK/Classes/ThirdPartySDK/Face++/MGLivenessDetection.framework',
      ]
      face.source_files = 'QNJSDK/Classes/ThirdPartySDK/Face++/**/*.{h,m,mm}'
      face.resources =  [
      'QNJSDK/Classes/Bundles/MGIDCardResource.bundle',
      'QNJSDK/Classes/Bundles/MGLivenessDetectionResource.bundle',
      ]
  end
  s.subspec 'MainSDK' do  |main|
      main.resources = [
      'QNJSDK/Classes/ThirdPartySDK/QNJLib/QNJSDK.framework/Versions/A/Resources/QNJSDK.bundle',
      'QNJSDK/Classes/ThirdPartySDK/QNJLib/QNJSDK.framework/Versions/A/Resources/QNJRefresh.bundle',
      'QNJSDK/Classes/ThirdPartySDK/QNJLib/QNJSDK.framework/Versions/A/Resources/QNJFont.ttf'
      ]
      main.ios.vendored_frameworks = 'QNJSDK/Classes/ThirdPartySDK/QNJLib/QNJSDK.framework'
  end

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
测试sdk方法分类  和工程同名
DESC

  s.homepage         = 'https://gitee.com/heyuefengyun/QNJPodVersion'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'miaoliujie@xianjincard.com' => 'miaoliujie@xianjincard.com' }
  #s.source           = { :git => 'git@192.168.39.26:miaoliujie/QNJSDKAddress.git', :tag => s.version.to_s }
  #这样子方便本地package测试
  #git@git.koudaikj.com:miaoliujie/QNJSDKAddress.git
  s.source           = { :git => 'https://gitee.com/heyuefengyun/QNJPodVersion.git', :tag => s.version.to_s }
  #repo =>repo名称:QNJSDKRepo=>git地址：git@git.koudaikj.com:miaoliujie/QNJSDKRepoAddress.git
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  s.ios.deployment_target = '8.3'

  #s.source_files = 'QNJSDK/Classes/QNJLib/QNJSDK.framework/Headers/**/*.{h,m,mm}'
  #s.resource_bundles = {
  #   'QNJSDK' => [
  #   'QNJSDK/Assets/MianSource/*.png',
  #   'QNJSDK/Classes/QCSDK/**/*.{storyboard,xib}'
  #   ]
  #}
  #打包时只显示头文件 此处路径很奇怪 绝对路径不行
  # s.public_header_files =[
  #  'QNJSDK/Classes/ThirdPartySDK/QNJLib/**/QnjSDK.h',
  #  'QNJSDK/Classes/ThirdPartySDK/QNJLib/**/QNJManager.h',
  #  ]
  #系统的framework'
  s.frameworks = 'UIKit', 'MapKit','SystemConfiguration','Security','CoreTelephony','CFNetwork','CoreMotion','Foundation','CoreGraphics','CoreText','QuartzCore','Contacts','ContactsUI','AudioToolbox','CoreMedia','AVFoundation','MobileCoreServices','AdSupport','JavaScriptCore','AssetsLibrary','EventKit','MessageUI','WebKit','CallKit'
  #系统的lib库 省略lib
  s.libraries = 'z','c++','sqlite3.0','iconv','resolv','icucore','resolv.9','sqlite3','xml2'
  s.static_framework = true
  
  # build setting的配置
  s.user_target_xcconfig =   {'OTHER_LDFLAGS' => [
      '-lObjC','-all_load','-ObjC'
      ],'ENABLE_BITCODE' => 'NO',
      'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES'
      
  }
  s.pod_target_xcconfig =   {'OTHER_LDFLAGS' => [
      '-lObjC','-all_load','-ObjC'
      ],'ENABLE_BITCODE' => 'NO'}
  #arc设置
  #s.requires_arc = true
  
  #s.dependency 'MoxieSDK-iOS', '~> 2.4.4'

  #s.dependency 'AFNetworking', '~>3.1.0'
  #s.dependency 'SDWebImage', '~> 3.8.2'
  #s.dependency 'YYModel', '~> 1.0.4'
  # s.dependency 'JRSwizzle'
  #s.dependency 'ELCImagePickerController', '~> 0.2.0'
  #s.dependency 'MBProgressHUD', '~> 1.1.0'
  # s.dependency 'SpinKit', '~> 1.1'
end
